let mobileHome = require( './mobileHome' );
let genIndent = require( './genIndent' );
let inform = require( './inform' );
let previousConfig = require( './previousConfig' );
let processMoment = require( './processMoment' );
let getCurMoney =  require( './getCurMoney' );


const router = {
  // 首页
  '/pay/': {
    method: 'get',
    handle: mobileHome,
  },
  // 生成订单
  '/pay/genIndent': {
    method: 'get',
    handle: genIndent,
  },
  // 支付结果回调
  '/pay/inform': {
    method: 'post',
    handle: inform,
  },
  // 处理支付留言动态
  '/pay/processMoment':{
    method: 'post',
    handle: processMoment
  },
  // 返回当前赏金总数
  '/pay/getCurMoney':{
    method: 'get',
    handle: getCurMoney
  },
  // 微信支付配置前期准备
  '/pay/MP_verify_UzD0UIXMDo8fFQKj.txt': {
    method: 'get',
    handle: previousConfig
  }
};



module.exports = router;